<<<<<<< HEAD
(function(my){
	function ActionRegister(){};
	ActionRegister.prototype = new Action('Reg');
	ActionRegister.prototype.validkey ={
		'Phone':undefined, 
		'Pwd':{mode:'encode', formName:'Pwdenc', value:undefined}, 
		'UserName':undefined, 
		'IDCard':'', 
		'AppVersion':'0.0.0.0', 
		'WillBePartC':false
	};
	/*
	ActionRegister.prototype.__defineGetter__('data', function(){
		log = 'call Actionregister getter for "data"';
		var d = {};
		var err=[];
		for(var key in this.validkey)
		{
			var validval = user[key] || this.validkey[key];
			if(undefined == validval)
				err.push(key);
			else
			{
				if(typeof this.validkey[key] == 'object')
				{
					var vdefine = this.validkey[key];
					var val = vdefine.value || user[key];
					if(undefined == val)
						 err.push(key);
					else
					{
						switch(vdefine.mode)
						{
						case 'encode':
							d[vdefine.formName] = server.encode(val);
							break;
						default:
							break;
						}
					}
				}else
					d[key] = validval
				
			}
							
		}
		if(err.length)
			throw('missing keys:' + err.join(','));
		return d;
	})	
	*/
	my.ActionRegister = ActionRegister;
	function ActionGetUserBaseInfo(){}
	ActionGetUserBaseInfo.prototype = new Action('GetUserBaseInfo');
	ActionGetUserBaseInfo.prototype.validkey = {
		keyWord:'',
		uID:undefined
	};
	my.ActionGetUserBaseInfo = ActionGetUserBaseInfo;
	
	function ActionLogin(){}
	ActionLogin.prototype = new Action('Login');
	ActionLogin.prototype.validkey = {
		pwd:{mode:'encode', formName:'Pwdenc', value:undefined},
		Phone:undefined,
	};
	my.ActionLogin = ActionLogin;
=======
(function (my) {
    function ActionRegister()
    {
        this.userObject = user;
    }
    ;
    ActionRegister.prototype = new Action('Reg');
    ActionRegister.prototype.validkey = {
        'Phone': undefined,
        'Pwd': {mode: 'encode', formName: 'Pwdenc', value: undefined},
        'UserName': undefined,
        'IDCard': '',
        'AppVersion': '0.0.0.0',
        'WillBePartC': false
    };
    ActionRegister.prototype.constructor = ActionRegister;

    my.ActionRegister = ActionRegister;
    function ActionGetUserBaseInfo()
    {
        this.userObject = user;
    }
    ActionGetUserBaseInfo.prototype = new Action('GetUserBaseInfo');
    ActionGetUserBaseInfo.prototype.validkey = {
        keyWord: '',
        uID: undefined
    };

    my.ActionGetUserBaseInfo = ActionGetUserBaseInfo;

    function ActionLogin()
    {
        this.userObject = user;
    }
    ActionLogin.prototype = new Action('Login');
    ActionLogin.prototype.validkey = {
        pwd: {mode: 'encode', formName: 'Pwdenc', value: undefined},
        Phone: undefined
    };

    my.ActionLogin = ActionLogin;
    my.ActionSetCarCode = function(){
        this.userObject = user;
    };
    my.ActionSetCarCode.prototype = new Action('SetCarCode');
    my.ActionSetCarCode.prototype.validkey = {
            uID:undefined,
            CarCode:undefined
    };
    my.ActionDelCarCode = function(){
        this.userObject = user;
    };
    my.ActionDelCarCode.prototype = new Action('DelCarCode');
    my.ActionDelCarCode.prototype.validkey = {
            uID:undefined,
            CarCode:undefined
    };
    my.ActionSetPwd = function(){
        this.userObject = user;
    };
    my.ActionSetPwd.prototype = new Action('SetPwd');
    my.ActionSetPwd.prototype.validkey = {
            uID:undefined,
            pwd: {mode: 'encode', formName: 'Pwdenc', value: undefined}
    };
    
    my.ActionSetWillBePartC = function(){
        this.userObject = user;
    };
    my.ActionSetWillBePartC.prototype = new Action('SetUserBaseInfo');
    my.ActionSetWillBePartC.prototype.validkey = {
            uID:undefined,
            // pwd: {mode: 'encode', formName: 'Pwdenc', value: undefined}
            WillBePartC:undefined
    };
    
    // GetDoingTaskForC
    // GetAllRentParkingSpaceInfo
    // GetParkingSpaceInfoList
    // GetPartBCOrders
    // GetPartBOrders
    // GetPartCOrders
    // GetTodoForC
    // GetTotalIncome

    var query = "GetDoingTaskForC,GetAllRentParkingSpaceInfo,\
GetParkingSpaceInfoList,GetPartBCOrders,\
GetPartBOrders,GetPartCOrders,GetTodoForC,GetTotalIncome".split(',');    
    for(var key in query)
    {
        my['Action' + query[key]] = function(){
            this.userObject = user;
        };
         my['Action' + query[key]].prototype = new Action(query[key]);
         my['Action' + query[key]].prototype.validkey = {
            uID:undefined,
            // pwd: {mode: 'encode', formName: 'Pwdenc', value: undefined}
            KeyWord:''
        };
    }   
    
>>>>>>> 8f1ea022b5713246e82c62242592626f70c398ab
})(this);